﻿using Caliburn.Micro;

namespace MediaOwl.Cryptos.Model
{
    public class CryptValue<T> : PropertyChangedBase
    {
        private T value;

        public CryptValue()
        {
            
        }

        public CryptValue(T value)
        {
            Value = value;
        }

        public T Value
        {
            get { return value; }
            set
            {
                if (value.Equals(this.value))
                    return;

                this.value = value;
                NotifyOfPropertyChange(() => Value);
            }
        }
    }
}